package stockblaster.client;

import stockblaster.gen.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class HelpActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help_menu);
		
		Button popUpsTextBut = (Button) this.findViewById(R.id.popUpsText);
		if (!CurrentUser.getUsername().equals("Januardo Jankowski")) {
			popUpsTextBut.setVisibility(View.GONE);
		}
	}

	@Override
	public void onBackPressed() {
		MethodHelper.switch_activity(HelpActivity.this,
				CurrentUser.getFromClass(CurrentUser.HELP), false);
	}

	public void onBackPressed(View v) {
		MethodHelper.switch_activity(HelpActivity.this,
				CurrentUser.getFromClass(CurrentUser.HELP), false);
	}

	public void howToPlay(View v) {
		MethodHelper.switch_activity(this, HowToPlayActivity.class, false);
	}

	public void tradingTips(View v) {
		MethodHelper.switch_activity(this, TradingTipsActivity.class, false);
	}
	
	public void popUpsText(View v) {
		MethodHelper.switch_activity(this, PopUpsViewActivity.class, false);
	}
}
